package com.xiehua.task.client.example;

import com.xiehua.task.annotation.Executor;
import com.xiehua.task.annotation.Task;
import com.xiehua.task.job.cron.CronSequenceGenerator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@Task(topic = "b2c_task")
public class B2cJob1 {

    private static Logger log = LoggerFactory.getLogger(B2cJob1.class);


    @Executor(cron = "0 */1 * * * ?")
    public void task1(){
        System.out.println("我是定时任务输出:B2cJob1->task1");
    }

//    @Executor(cron = "0 */1 * * * ?")
    public void test(){
        System.out.println("我是定时任务输出:B2cJob1->test");
    }
}
